home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / RTLWIN16.PAK / PENWOEM.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  3KB  |  81 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * penwoem.h -   Pen Windows APIs into recognizer layer.                       *
  4. *                                                                             *
  5. \*****************************************************************************/
  6.  
  7. /* $Copyright: 1987$ */
  8.  
  9. #ifndef __PENWOEM_H     /* prevent multiple includes */
  10. #define __PENWOEM_H
  11.  
  12. #ifndef __WINDOWS_H
  13. #include <windows.h>    /* <windows.h> must be included */
  14. #endif  /* __WINDOWS_H */
  15.  
  16. #ifndef __PENWIN_H
  17. #include <penwin.h>     /* <penwin.h> must be included */
  18. #endif  /* __PENWIN_H */
  19.  
  20. #ifndef RC_INVOKED
  21. #pragma pack(push, 1)   /* Assume byte packing throughout */
  22. #endif  /* RC_INVOKED */
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {            /* Assume C declarations for C++ */
  26. #endif  /* __cplusplus */
  27.  
  28. typedef int (CALLBACK *LPFUNCRESULTS) (LPRCRESULT, REC);
  29.  
  30. /* Initialization Functions */
  31.  
  32. #define WCR_RECOGNAME          0
  33. #define WCR_QUERY              1
  34. #define WCR_CONFIGDIALOG       2
  35. #define WCR_DEFAULT            3
  36. #define WCR_RCCHANGE           4
  37. #define WCR_VERSION            5
  38. #define WCR_TRAIN              6
  39. #define WCR_TRAINSAVE          7
  40. #define WCR_TRAINMAX           8
  41. #define WCR_TRAINDIRTY         9
  42. #define WCR_TRAINCUSTOM        10
  43. #define WCR_QUERYLANGUAGE      11
  44. #define WCR_USERCHANGE         12
  45. #define WCR_PRIVATE            1024
  46.  
  47. /* sub-function of WCR_USERCHANGE */
  48. #define CRUC_REMOVE            1
  49.  
  50. /* Return values for WCR_TRAIN Function */
  51. #define TRAIN_NONE             0x0000
  52. #define TRAIN_DEFAULT          0x0001
  53. #define TRAIN_CUSTOM           0x0002
  54. #define TRAIN_BOTH             (TRAIN_DEFAULT | TRAIN_CUSTOM)
  55.  
  56. /* Control values for TRAINSAVE */
  57. #define TRAIN_SAVE             0  /* Save changes that have been made */
  58. #define TRAIN_REVERT           1  /* Discard changes that have been made */
  59.  
  60. UINT WINAPI ConfigRecognizer(UINT, WPARAM, LPARAM);
  61. BOOL WINAPI InitRecognizer(LPRC);
  62. VOID WINAPI CloseRecognizer(VOID);
  63.  
  64. /* Recognition Functions */
  65. REC  WINAPI RecognizeInternal(LPRC, LPFUNCRESULTS);
  66. REC  WINAPI RecognizeDataInternal(LPRC, HPENDATA, LPFUNCRESULTS);
  67.  
  68. /* Training Functions */
  69. BOOL WINAPI TrainInkInternal(LPRC, HPENDATA, LPSYV);
  70. BOOL WINAPI TrainContextInternal(LPRCRESULT, LPSYE, int, LPSYC, int);
  71.  
  72. #ifdef __cplusplus
  73. }                       /* End of extern "C" { */
  74. #endif  /* __cplusplus */
  75.  
  76. #ifndef RC_INVOKED
  77. #pragma pack(pop)       /* Revert to default packing */
  78. #endif  /* RC_INVOKED */
  79.  
  80. #endif  /* __PENWOEM_H */
  81.